:root {
    --el-color-white: #ffffff;
    --el-color-black: #000000;
    --el-color-primary: #11a983;
    --el-color-primary-light-3: #3375b9;
    --el-color-primary-light-5: #2a598a;
    --el-color-primary-light-7: #213d5b;
    --el-color-primary-light-8: #1d3043;
    --el-color-primary-light-9: #18222c;
    --el-color-primary-dark-2: #66b1ff;
    --el-color-success: #67c23a;
    --el-color-success-light-3: #4e8e2f;
    --el-color-success-light-5: #3e6b27;
    --el-color-success-light-7: #2d481f;
    --el-color-success-light-8: #25371c;
    --el-color-success-light-9: #1c2518;
    --el-color-success-dark-2: #85ce61;
    --el-color-warning: #e6a23c;
    --el-color-warning-light-3: #a77730;
    --el-color-warning-light-5: #7d5b28;
    --el-color-warning-light-7: #533f20;
    --el-color-warning-light-8: #3e301c;
    --el-color-warning-light-9: #292218;
    --el-color-warning-dark-2: #ebb563;
    --el-color-danger: #f56c6c;
    --el-color-danger-light-3: #b25252;
    --el-color-danger-light-5: #854040;
    --el-color-danger-light-7: #582e2e;
    --el-color-danger-light-8: #412626;
    --el-color-danger-light-9: #2b1d1d;
    --el-color-danger-dark-2: #f78989;
    --el-color-error: #f56c6c;
    --el-color-error-light-3: #b25252;
    --el-color-error-light-5: #854040;
    --el-color-error-light-7: #582e2e;
    --el-color-error-light-8: #412626;
    --el-color-error-light-9: #2b1d1d;
    --el-color-error-dark-2: #f78989;
    --el-color-info: #909399;
    --el-color-info-light-3: #6b6d71;
    --el-color-info-light-5: #525457;
    --el-color-info-light-7: #393a3c;
    --el-color-info-light-8: #2d2d2f;
    --el-color-info-light-9: #202121;
    --el-color-info-dark-2: #a6a9ad;
    --el-text-color-primary: #e5eaf3;
    --el-text-color-regular: #cfd3dc;
    --el-text-color-secondary: #a3a6ad;
    --el-text-color-placeholder: #8d9095;
    --el-text-color-disabled: #6c6e72;
    --el-bg-color-page: #0a0a0a;
    --el-bg-color: #141414;
    --el-bg-color-overlay: #1d1e1f;
    --el-fill-color-darker: #424243;
    --el-fill-color-dark: #39393a;
    --el-fill-color: #303030;
    --el-fill-color-light: #262727;
    --el-fill-color-lighter: #1d1d1d;
    --el-fill-color-extra-light: #191919;
    --el-fill-color-blank: transparent;
    --el-font-size-extra-large: 20px;
    --el-font-size-large: 18px;
    --el-font-size-medium: 16px;
    --el-font-size-base: 14px;
    --el-font-size-small: 13px;
    --el-font-size-extra-small: 12px;
    --el-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    --el-font-weight-primary: 500;
    --el-font-line-height-primary: 24px;
    --el-border-color-darker: #636466;
    --el-border-color-dark: #58585b;
    --el-border-color: #4c4d4f;
    --el-border-color-light: #414243;
    --el-border-color-lighter: #363637;
    --el-border-color-extra-light: #2b2b2c;
    --el-border-color-hover: var(--el-text-color-disabled);
    --el-border: var(--el-border-width) var(--el-border-style) var(--el-border-color);
    --el-border-width: 1px;
    --el-border-style: solid;
    --el-disabled-bg-color: var(--el-fill-color-light);
    --el-disabled-text-color: var(--el-text-color-placeholder);
    --el-disabled-border-color: var(--el-border-color-light);
    --el-table-header-text-color: var(--el-text-color-secondary);
    --el-table-header-bg-color: var(--el-bg-color);
    --el-table-text-color: var(--el-text-color-regular);
    --el-table-border-color: var(--el-border-color-lighter);
    --el-table-border: 1px solid var(--el-table-border-color);
    --el-table-row-hover-bg-color: var(--el-fill-color-light);
    --el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, 0.36), 0px 8px 20px rgba(0, 0, 0, 0.72);
    --el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, 0.72);
    --el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, 0.72);
    --el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, 0.72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;
}

.app-main {
    background-color: var(--el-bg-color-page);
}

.el-table {
    background-color: unset;
    color: var(--el-table-text-color);
    tr {
        background-color: var(--el-table-header-bg-color);
    }
    .el-table__header-wrapper {
        th {
            color: unset !important;
        }
    }
    thead {
        color: var(--el-table-header-text-color);
    }
    th {
        background-color: unset !important;
        &.el-table__cell {
            border-bottom: var(--el-table-border) !important;
        }
    }
    td {
        &.el-table__cell {
            border-bottom: var(--el-table-border) !important;
        }
    }
    &::before,
    &::after {
        background-color: var(--el-table-border-color);
    }
}

.el-table--border {
    border: var(--el-table-border);
    .el-table__cell {
        border-right: var(--el-table-border) !important;
    }
}

.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
    background-color: var(--el-table-row-hover-bg-color);
}

.el-table__body tr.hover-row > td.el-table__cell {
    background-color: var(--el-table-row-hover-bg-color);
}

.el-tag {
    background-color: var(--el-color-primary-light-9);
    border-color: var(--el-color-primary-light-8);
    color: var(--el-color-primary);
    &.el-tag--primary {
        background-color: var(--el-color-primary-light-9);
        border-color: var(--el-color-primary-light-8);
        color: var(--el-color-primary);
    }
    &.el-tag--success {
        background-color: var(--el-color-success-light-9);
        border-color: var(--el-color-success-light-8);
        color: var(--el-color-success);
    }
    &.el-tag--danger {
        background-color: var(--el-color-danger-light-9);
        border-color: var(--el-color-danger-light-8);
        color: var(--el-color-danger);
    }
    &.el-tag--info {
        background-color: var(--el-color-info-light-9);
        border-color: var(--el-color-info-light-8);
        color: var(--el-color-info);
    }
    &.el-tag--error {
        background-color: var(--el-color-error-light-9);
        border-color: var(--el-color-error-light-8);
        color: var(--el-color-error);
    }
    &.el-tag--warning {
        background-color: var(--el-color-warning-light-9);
        border-color: var(--el-color-danger-light-8);
        color: var(--el-color-warning);
    }
}

.el-button {
    --el-button-font-weight: var(--el-font-weight-primary);
    --el-button-border-color: var(--el-border-color);
    --el-button-bg-color: var(--el-fill-color-blank);
    --el-button-text-color: var(--el-text-color-regular);
    --el-button-disabled-text-color: var(--el-disabled-text-color);
    --el-button-disabled-bg-color: var(--el-fill-color-blank);
    --el-button-disabled-border-color: var(--el-border-color-light);
    --el-button-divide-border-color: rgba(255, 255, 255, 0.5);
    --el-button-hover-text-color: var(--el-color-primary);
    --el-button-hover-bg-color: var(--el-color-primary-light-9);
    --el-button-hover-border-color: var(--el-color-primary-light-7);
    --el-button-active-text-color: var(--el-button-hover-text-color);
    --el-button-active-border-color: var(--el-color-primary);
    --el-button-active-bg-color: var(--el-button-hover-bg-color);
    --el-button-outline-color: var(--el-color-primary-light-5);
    --el-button-hover-link-text-color: var(--el-color-info);
    --el-button-active-color: var(--el-text-color-primary);
    color: var(--el-button-text-color);
    background-color: var(--el-button-bg-color);
    border-color: var(--el-button-border-color);
    &:hover {
        color: var(--el-button-hover-text-color);
        border-color: var(--el-button-hover-border-color);
        background-color: var(--el-button-hover-bg-color);
        outline: 0;
    }
    &.el-button--success {
        --el-button-text-color: var(--el-color-white);
        --el-button-bg-color: var(--el-color-success);
        --el-button-border-color: var(--el-color-success);
        --el-button-outline-color: var(--el-color-success-light-5);
        --el-button-active-color: var(--el-color-success-dark-2);
        --el-button-hover-text-color: var(--el-color-white);
        --el-button-hover-link-text-color: var(--el-color-success-light-5);
        --el-button-hover-bg-color: var(--el-color-success-light-3);
        --el-button-hover-border-color: var(--el-color-success-light-3);
        --el-button-active-bg-color: var(--el-color-success-dark-2);
        --el-button-active-border-color: var(--el-color-success-dark-2);
        --el-button-disabled-text-color: var(--el-color-white);
        --el-button-disabled-bg-color: var(--el-color-success-light-5);
        --el-button-disabled-border-color: var(--el-color-success-light-5);
    }
    &.el-button--primary {
        --el-button-text-color: var(--el-color-white);
        --el-button-bg-color: var(--el-color-primary);
        --el-button-border-color: var(--el-color-primary);
        --el-button-outline-color: var(--el-color-primary-light-5);
        --el-button-active-color: var(--el-color-primary-dark-2);
        --el-button-hover-text-color: var(--el-color-white);
        --el-button-hover-link-text-color: var(--el-color-primary-light-5);
        --el-button-hover-bg-color: var(--el-color-primary-light-3);
        --el-button-hover-border-color: var(--el-color-primary-light-3);
        --el-button-active-bg-color: var(--el-color-primary-dark-2);
        --el-button-active-border-color: var(--el-color-primary-dark-2);
        --el-button-disabled-text-color: var(--el-color-white);
        --el-button-disabled-bg-color: var(--el-color-primary-light-5);
        --el-button-disabled-border-color: var(--el-color-primary-light-5);
    }
    &.el-button--danger {
        --el-button-text-color: var(--el-color-white);
        --el-button-bg-color: var(--el-color-danger);
        --el-button-border-color: var(--el-color-danger);
        --el-button-outline-color: var(--el-color-danger-light-5);
        --el-button-active-color: var(--el-color-danger-dark-2);
        --el-button-hover-text-color: var(--el-color-white);
        --el-button-hover-link-text-color: var(--el-color-danger-light-5);
        --el-button-hover-bg-color: var(--el-color-danger-light-3);
        --el-button-hover-border-color: var(--el-color-danger-light-3);
        --el-button-active-bg-color: var(--el-color-danger-dark-2);
        --el-button-active-border-color: var(--el-color-danger-dark-2);
        --el-button-disabled-text-color: var(--el-color-white);
        --el-button-disabled-bg-color: var(--el-color-danger-light-5);
        --el-button-disabled-border-color: var(--el-color-danger-light-5);
    }
    &.el-button--warning {
        --el-button-text-color: var(--el-color-white);
        --el-button-bg-color: var(--el-color-warning);
        --el-button-border-color: var(--el-color-warning);
        --el-button-outline-color: var(--el-color-warning-light-5);
        --el-button-active-color: var(--el-color-warning-dark-2);
        --el-button-hover-text-color: var(--el-color-white);
        --el-button-hover-link-text-color: var(--el-color-warning-light-5);
        --el-button-hover-bg-color: var(--el-color-warning-light-3);
        --el-button-hover-border-color: var(--el-color-warning-light-3);
        --el-button-active-bg-color: var(--el-color-warning-dark-2);
        --el-button-active-border-color: var(--el-color-warning-dark-2);
        --el-button-disabled-text-color: var(--el-color-white);
        --el-button-disabled-bg-color: var(--el-color-warning-light-5);
        --el-button-disabled-border-color: var(--el-color-warning-light-5);
    }
    &.el-button--info {
        --el-button-text-color: var(--el-color-white);
        --el-button-bg-color: var(--el-color-info);
        --el-button-border-color: var(--el-color-info);
        --el-button-outline-color: var(--el-color-info-light-5);
        --el-button-active-color: var(--el-color-info-dark-2);
        --el-button-hover-text-color: var(--el-color-white);
        --el-button-hover-link-text-color: var(--el-color-info-light-5);
        --el-button-hover-bg-color: var(--el-color-info-light-3);
        --el-button-hover-border-color: var(--el-color-info-light-3);
        --el-button-active-bg-color: var(--el-color-info-dark-2);
        --el-button-active-border-color: var(--el-color-info-dark-2);
        --el-button-disabled-text-color: var(--el-color-white);
        --el-button-disabled-bg-color: var(--el-color-info-light-5);
        --el-button-disabled-border-color: var(--el-color-info-light-5);
    }
    &.el-button--text {
        --el-button-text-color: var(--el-color-primary);
        --el-button-bg-color: var(--el-color-primary-light-9);
        --el-button-border-color: var(--el-color-primary-light-5);
        --el-button-hover-text-color: var(--el-color-white);
        --el-button-hover-bg-color: var(--el-color-primary);
        --el-button-hover-border-color: var(--el-color-primary);
        --el-button-active-text-color: var(--el-color-white);
        border-color: transparent;
        color: var(--el-button-text-color);
        background: 0 0;
        padding: 2px;
        height: auto;
    }
}

.el-dialog {
    --el-dialog-bg-color: var(--el-bg-color);
    background: var(--el-dialog-bg-color);
    .el-dialog__title {
        color: var(--el-text-color-primary);
    }
    .el-dialog__body {
        color: var(--el-text-color-regular);
    }
}
.el-input {
    --el-input-text-color: var(--el-text-color-regular);
    --el-input-border: var(--el-border);
    --el-input-hover-border: var(--el-border-color-hover);
    --el-input-focus-border: var(--el-color-primary);
    --el-input-transparent-border: 0 0 0 1px transparent inset;
    --el-input-border-color: var(--el-border-color);
    --el-input-border-radius: var(--el-border-radius-base);
    --el-input-bg-color: var(--el-fill-color-blank);
    --el-input-icon-color: var(--el-text-color-placeholder);
    --el-input-placeholder-color: var(--el-text-color-placeholder);
    --el-input-hover-border-color: var(--el-border-color-hover);
    --el-input-clear-hover-color: var(--el-text-color-secondary);
    --el-input-focus-border-color: var(--el-color-primary);
    --el-input-width: 100%;
    .el-input__inner {
        outline: 0;
        border: none;
        background: 0 0;
        background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
        box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
        color: var(--el-input-text-color, var(--el-text-color-regular));
        &:hover {
            box-shadow: 0 0 0 1px var(--el-input-hover-border-color) inset;
        }
    }
}

.el-form-item {
    --font-size: 14px;
    --el-form-label-font-size: var(--font-size);
    .el-form-item__label {
        display: inline-flex;
        justify-content: flex-end;
        align-items: flex-start;
        flex: 0 0 auto;
        font-size: var(--el-form-label-font-size);
        color: var(--el-text-color-regular);
        height: 32px;
        line-height: 32px;
        padding: 0 12px 0 0;
        box-sizing: border-box;
    }
}

.el-date-picker {
    --el-datepicker-text-color: var(--el-text-color-regular);
    --el-datepicker-off-text-color: var(--el-text-color-placeholder);
    --el-datepicker-header-text-color: var(--el-text-color-regular);
    --el-datepicker-icon-color: var(--el-text-color-primary);
    --el-datepicker-border-color: var(--el-disabled-border-color);
    --el-datepicker-inner-border-color: var(--el-border-color-light);
    --el-datepicker-inrange-bg-color: var(--el-border-color-extra-light);
    --el-datepicker-inrange-hover-bg-color: var(--el-border-color-extra-light);
    --el-datepicker-active-color: var(--el-color-primary);
    --el-datepicker-hover-text-color: var(--el-color-primary);
    --el-datepicker-border-color: var(--el-disabled-border-color);
    border-color: var(--el-datepicker-border-color) !important;
    &.el-picker-panel {
        color: var(--el-text-color-regular);
        background: var(--el-bg-color-overlay);
        .el-picker-panel__icon-btn {
            color: var(--el-datepicker-icon-color);
        }
    }

    .el-date-picker__time-header {
        border-bottom: 1px solid var(--el-datepicker-inner-border-color);
    }

    .el-date-table th {
        color: var(--el-datepicker-header-text-color);
        border-bottom: solid 1px var(--el-border-color-lighter);
    }

    .el-picker-panel__footer {
        border-top: 1px solid var(--el-datepicker-inner-border-color);
        padding: 4px 12px;
        text-align: right;
        background-color: var(--el-bg-color-overlay);
        position: relative;
        font-size: 0;
    }
}

.el-popper[x-placement^="bottom"] .popper__arrow {
    border-bottom-color: var(--el-border-color-light);
    &::after {
        border-bottom-color: var(--el-bg-color-overlay);
    }
}

.el-card {
    --el-card-border-color: var(--el-border-color-light);
    --el-card-border-radius: 4px;
    --el-card-padding: 20px;
    --el-card-bg-color: var(--el-bg-color-overlay);
    border: 1px solid var(--el-card-border-color);
    background-color: var(--el-card-bg-color);
    color: var(--el-text-color-primary);
    &.box-opened {
        .el-card__header {
            border-bottom: 1px solid var(--el-card-border-color) !important;
        }
    }
}

.feed-container {
    background-color: var(--el-bg-color-page) !important;
}

.el-textarea {
    --el-input-text-color: var(--el-text-color-regular);
    --el-input-border: var(--el-border);
    --el-input-hover-border: var(--el-border-color-hover);
    --el-input-focus-border: var(--el-color-primary);
    --el-input-transparent-border: 0 0 0 1px transparent inset;
    --el-input-border-color: var(--el-border-color);
    --el-input-border-radius: var(--el-border-radius-base);
    --el-input-bg-color: var(--el-fill-color-blank);
    --el-input-icon-color: var(--el-text-color-placeholder);
    --el-input-placeholder-color: var(--el-text-color-placeholder);
    --el-input-hover-border-color: var(--el-border-color-hover);
    --el-input-clear-hover-color: var(--el-text-color-secondary);
    --el-input-focus-border-color: var(--el-color-primary);
    --el-input-width: 100%;
    .el-textarea__inner {
        outline: 0;
        border: none;
        background: 0 0;
        background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
        box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
        color: var(--el-input-text-color, var(--el-text-color-regular));
        &:hover {
            box-shadow: 0 0 0 1px var(--el-input-hover-border-color) inset;
        }
    }
}

.el-tree {
    --el-tree-node-content-height: 26px;
    --el-tree-node-hover-bg-color: var(--el-fill-color-light);
    --el-tree-text-color: var(--el-text-color-regular);
    --el-tree-expand-icon-color: var(--el-text-color-placeholder);
    background: #141414;
    color: var(--el-tree-text-color);
    font-size: var(--el-font-size-base);
}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
    background-color: var(--el-color-primary-light-9);
}

.el-tree-node:focus > .el-tree-node__content {
    background-color: var(--el-tree-node-hover-bg-color);
}

.el-tree-node__content:hover {
    background-color: var(--el-tree-node-hover-bg-color);
}

.el-select-dropdown {
    background: var(--el-bg-color-overlay);
    border: 1px solid var(--el-border-color-light);
    box-shadow: var(--el-box-shadow-light);
}

.el-select-dropdown__item.hover {
    background-color: var(--el-fill-color-light);
}

.el-select-dropdown__item {
    color: var(--el-text-color-regular);
}

.el-loading-mask {
    background-color: rgba(0, 0, 0, 0.76);
}

.el-tabs__item {
    color: white;
}

.el-tabs__item.is-active {
    background-color: white;
    color: var(--el-color-primary);
}

.el-tabs__item:hover {
    background-color: white;
    color: var(--el-color-primary);
}
